package per.ethan.javase.thread;

/**
 * @author Ethan
 * @date 2020/04/27 10:26
 */
public class Demo2 extends Thread {

    private String url;

    public Demo2(String url) {
        this.url = url;
    }

    @Override
    public void run() {
        WebDownload.download(url);
    }

    public static void main(String[] args) {
        Demo2 t1 = new Demo2("https://ethanloving.top/upload/2020/3/QQ%E5%9B%BE%E7%89%8720200213162707-ab02fd31ae63457ab074e218c713542e.jpg");
        Demo2 t2 = new Demo2("https://ethanloving.top/upload/2020/04/image-154836b2baf04ebd8a7d293f0e24495c.png");
        Demo2 t3 = new Demo2("https://ethanloving.top/upload/2020/3/image-da745e13ff6a4f41a55a38dc09a839b1.png");

        t1.start();
        t2.start();
        t3.start();
    }

}
